/*****************************************************
Copyright (C) 2020. All rights reserved.
File name     ：DisjointSet.h
Version       ：v1.0
Author        ：zhengqijun
Date          ：2020-04-10
Function List ：
Description   ：Disjoint Set
******************************************************/

#ifndef DISJOINTSET_H_
#define DISJOINTSET_H_

#define NumSets 128

// Type Definition
typedef int DisjSet[NumSets + 1];
typedef int SetType;
typedef int ElementType;

// Function Lists
void Initialize(DisjSet S);
void SetUnion(DisjSet S, SetType Root1, SetType Root2);
SetType Find(ElementType X, DisjSet S);

#endif  /* DISJOINTSET_H_ */

// EOF

